/**profile.less**/
page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f9f9f9;
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 32rpx;
  padding-bottom: 32rpx;
}

/* 用户信息卡片 */
.card {
  background: #fff;
  border-radius: 24rpx;
  padding: 32rpx;
  margin-bottom: 32rpx;
  box-shadow: 0 8rpx 16rpx rgba(0, 0, 0, 0.05);
  position: relative;
}

.user-info {
  display: flex;
  align-items: center;
  padding: 48rpx;
}

.avatar {
  width: 160rpx;
  height: 160rpx;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8rpx 20rpx rgba(0, 0, 0, 0.1);
  border: 6rpx solid white;
}

.user-details {
  margin-left: 32rpx;
}

.user-name {
  font-size: 40rpx;
  font-weight: bold;
  margin-bottom: 8rpx;
}

.join-days {
  font-size: 28rpx;
  color: #666;
}

/* 引导卡片 */
.guide-card {
  background-color: #EDF2F7;
  border: 4rpx dashed #CBD5E0;
  border-radius: 24rpx;
  padding: 32rpx;
  text-align: center;
  margin-bottom: 32rpx;
  transition: all 0.3s ease;
}

.guide-tip {
  background: #FFF9DB;
  color: #975A16;
  border-radius: 16rpx;
  padding: 24rpx;
  margin-bottom: 32rpx;
  font-size: 28rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tip-icon {
  margin-right: 16rpx;
}

.btn-primary {
  background-color: #3182CE;
  color: white;
  border-radius: 12rpx;
  padding: 20rpx 0;
  font-size: 32rpx;
  width: 100%;
}

.btn-full {
  margin-top: 48rpx;
}

/* 偏好区域 */
.preferences-section {
  margin-bottom: 48rpx;
}

.pref-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24rpx;
}

.pref-title {
  font-size: 32rpx;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.pref-icon {
  margin-right: 16rpx;
  color: #4A5568;
}

.add-btn {
  width: 72rpx;
  height: 72rpx;
  border-radius: 50%;
  background-color: #EBF4FF;
  color: #3182CE;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plus-icon {
  font-size: 48rpx;
  line-height: 1;
}

/* 标签样式 */
.chip-container {
  display: flex;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 12rpx 24rpx;
  background-color: #E2E8F0;
  border-radius: 40rpx;
  margin-right: 16rpx;
  margin-bottom: 16rpx;
  font-size: 28rpx;
  color: #4A5568;
}

.chip-icon {
  margin-right: 12rpx;
  font-size: 24rpx;
}

/* 统计区域 */
.stat-title {
  font-weight: 600;
  font-size: 32rpx;
  margin-bottom: 32rpx;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32rpx;
  text-align: center;
}

.stat-item {
  padding: 24rpx;
}

.stat-value {
  font-size: 40rpx;
  font-weight: bold;
  margin-bottom: 8rpx;
  
  &.blue {
    color: #3182CE;
  }
  
  &.green {
    color: #38A169;
  }
  
  &.purple {
    color: #805AD5;
  }
}

.stat-label {
  font-size: 24rpx;
  color: #718096;
}

/* 弹出层样式 */
.popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top-left-radius: 32rpx;
  border-top-right-radius: 32rpx;
  padding: 32rpx;
  transform: translateY(100%);
  transition: transform 0.3s;
  z-index: 200;
  max-height: 80vh;
  overflow-y: auto;

  &.show {
    transform: translateY(0);
  }
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32rpx;
  padding-bottom: 16rpx;
  border-bottom: 1rpx solid #E2E8F0;
}

.popup-title {
  font-size: 32rpx;
  font-weight: 600;
}

.popup-close {
  font-size: 32rpx;
}

.popup-content {
  padding-bottom: 32rpx;
}

.form-group {
  margin-bottom: 32rpx;
}

.form-label {
  display: block;
  font-size: 28rpx;
  font-weight: 500;
  margin-bottom: 16rpx;
}

.form-input {
  width: 100%;
  border: 1rpx solid #E2E8F0;
  border-radius: 12rpx;
  padding: 20rpx;
  font-size: 28rpx;
  background-color: #F7FAFC;
}

.recommended {
  margin-top: 40rpx;
}

.rec-title {
  font-size: 32rpx;
  font-weight: 600;
  margin-bottom: 24rpx;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16rpx;
}

.rec-chip {
  display: flex;
  align-items: center;
  padding: 16rpx 24rpx;
  background-color: #E2E8F0;
  border-radius: 40rpx;
  font-size: 28rpx;
  color: #4A5568;
}

.mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 199;

  &.show {
    opacity: 1;
    visibility: visible;
  }
} 